package com.example.port.entity;

import java.util.Date;
import lombok.Data;

@Data
public class Client {
    
    private Integer clientId;
    private String clientName;
    private String contactPerson;
    private String contactPhone;
    private String email;
    private String address;
    private ClientType clientType;
    private String registrationNumber;
    private String clientCode;
    private String companyName;
    private String contactName;
    private CreditRating creditRating;
    private Date contractStart;
    
    public enum ClientType {
        INDIVIDUAL, COMPANY, GOVERNMENT, OTHER
    }

    public enum CreditRating { A, B, C, D }

    // Getters and Setters
    public Integer getClientId() {
        return clientId;
    }
    
    public void setClientId(Integer clientId) {
        this.clientId = clientId;
    }
    
    public String getClientCode() {
        return clientCode;
    }
    
    public void setClientCode(String clientCode) {
        this.clientCode = clientCode;
    }
    
    public String getCompanyName() {
        return companyName;
    }
    
    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
    
    public String getContactName() {
        return contactName;
    }
    
    public void setContactName(String contactName) {
        this.contactName = contactName;
    }
    
    public String getContactPhone() {
        return contactPhone;
    }
    
    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }
    
    public CreditRating getCreditRating() {
        return creditRating;
    }
    
    public void setCreditRating(CreditRating creditRating) {
        this.creditRating = creditRating;
    }
    
    public Date getContractStart() {
        return contractStart;
    }
    
    public void setContractStart(Date contractStart) {
        this.contractStart = contractStart;
    }
} 
